package com.suny.Farm.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 牧场信息表
 * @TableName farm
 */
//@Schema(description = "牧场信息实体")
@TableName(value ="farm")
@Data
public class Farm implements Serializable {
    /**
     * 
     */
    @Schema(name = "id", description = "主键")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 牲畜品种ID
     */
    @Schema(name = "牲畜品种ID", description = "牲畜品种ID")
    private Integer valId;

    /**
     * 牧场名称
     */
    @Schema(name = "牧场名称", description = "牧场名称")
    private String name;

    /**
     * 场地规模(平方米)
     */
    @Schema(name = "场地规模(平方米)", description = "场地规模(平方米)")
    private Integer area;

    /**
     * 养殖规模
     */
    @Schema(name = "养殖规模", description = "养殖规模")
    private Integer breedingScale;

    /**
     * 存栏量
     */
    @Schema(name = "存栏量", description = "存栏量")
    private Integer amountLivestock;

    /**
     * 城市
     */
    @Schema(name = "城市", description = "城市")
    private String city;

    /**
     * 省份
     */
    private String province;

    /**
     * 区县
     */
    @Schema(name = "区县", description = "区县")
    private String district;

    /**
     * 详细地址
     */
    @Schema(name = "详细地址", description = "详细地址")
    private String detailedAddress;

    /**
     * 纬度
     */
    @Schema(name = "纬度", description = "纬度")
    private BigDecimal latitude;

    /**
     * 经度
     */
    @Schema(name = "经度", description = "经度")
    private BigDecimal longitude;

    /**
     * 牧场状态(1:启用,0:停用)
     */
    @Schema(name = "牧场状态(1:启用,0:停用)", description = "牧场状态(1:启用,0:停用)")
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(name = "创建时间", description = "创建时间")
    private Date createdTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(name = "更新时间", description = "更新时间")
    private Date updatedTime;

}